﻿<Window x:Class="BaMusaSoft.RPS.View.Shell"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:p="clr-namespace:BaMusaSoft.RPS.View.Properties"
        FlowDirection="RightToLeft" FontSize="13" FontFamily="Verdana"
        Title="{Binding Path=DisplayName}"
        WindowState="Maximized" Closing="WindowClosing" Loaded="WindowLoaded">
    <Window.Resources>
        <ResourceDictionary Source="Resources/ShellResources.xaml"/>
    </Window.Resources>
    <DockPanel>
        <DockPanel DockPanel.Dock="Top" KeyboardNavigation.TabNavigation="None">
            <Menu KeyboardNavigation.TabNavigation="Cycle">
                <MenuItem Header="{x:Static p:Resources.Shell_FileMenuLabel}">
                    <MenuItem Header="{Binding Path=CreateScheduleViewCommand.DisplayName}" Command="{Binding Path=CreateScheduleViewCommand.Command}"/>
                    <MenuItem Header="{Binding Path=CreateSignerViewCommand.DisplayName}" Command="{Binding Path=CreateSignerViewCommand.Command}"/>
                    <MenuItem Header="{x:Static p:Resources.Shell_ClaimMenuLabel}" Click="ShowClaimView"/>
                    <MenuItem Header="{x:Static p:Resources.Shell_ExitMenuLabel}" Click="ExitClick"/>
                </MenuItem>
                <MenuItem Header="{x:Static p:Resources.Shell_ToolsMenuLabel}">
                    <MenuItem Header="{Binding Path=ShowAllSchedulesCommand.DisplayName}" Command="{Binding Path=ShowAllSchedulesCommand.Command}"/>
                    <MenuItem Header="{Binding Path=ShowContractsViewCommand.DisplayName}" Command="{Binding Path=ShowContractsViewCommand.Command}"/>
                    <MenuItem Header="{Binding Path=ShowCustomersViewCommand.DisplayName}" Command="{Binding Path=ShowCustomersViewCommand.Command}"/>
                </MenuItem>
                <MenuItem Header="{x:Static p:Resources.Shell_OptionsMenuLabel}">
                    <MenuItem Header="{Binding Path=CreateSyncViewCommand.DisplayName}" Command="{Binding Path=CreateSyncViewCommand.Command}"/>
                    <MenuItem Header="{Binding Path=CreateSettingsViewCommand.DisplayName}" Command="{Binding Path=CreateSettingsViewCommand.Command}"/>
                </MenuItem>
            </Menu>
        </DockPanel>

        <Grid Margin="4">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="4" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
      <Border 
        Grid.Column="0" 
        Style="{StaticResource MainBorderStyle}"
        Width="170" KeyboardNavigation.IsTabStop="False" KeyboardNavigation.TabNavigation="None">
        <HeaderedContentControl
          Content="{Binding Path=CommonTaksCommands}"
          ContentTemplate="{StaticResource CommandsTemplate}"
          Style="{StaticResource MainHCCStyle}"/>
         </Border>
            <Border 
        Grid.Column="2" 
        Style="{StaticResource MainBorderStyle}">
      <HeaderedContentControl 
          Content="{Binding Path=Workspaces}"
          ContentTemplate="{StaticResource WorkspacesTemplate}"
          Style="{StaticResource MainHCCStyle}"/>
            </Border>
        </Grid>
    </DockPanel>
</Window>
